package ch4tree;

import java.util.LinkedHashSet;

public class GraphNode {
	int value;
	LinkedHashSet<GraphNode> adjacent = new LinkedHashSet<>();
	public State state = State.Unvisited;
	
	public LinkedHashSet<GraphNode> getAdjacent() {
		return adjacent;
	}

	public void setAdjacent(LinkedHashSet<GraphNode> adjacent) {
		this.adjacent = adjacent;
	}

	public GraphNode(int value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return Integer.toString(value);
	}
}
